import App from "../App";
import Deail from "../pages/deail";
import Home from "../pages/home";
import List from "../pages/list";
import Order from "../pages/order";
import {createBrowserRouter} from 'react-router-dom'

export const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children: [
            {
                index: true,
                element: <Home></Home>
            },
            {
                path: 'home',
                element: <Home></Home>
            }
        ]
    },
    {
        path: '/list',
        element: <List></List>
    },
    {
        path: '/deail',
        element: <Deail></Deail>
    },
    {
        path: '/order',
        element: <Order></Order>
    },
]);